home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / RIncludes / Controls.r < prev    next >
Encoding:
Text File  |  1997-08-12  |  3.1 KB  |  113 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Controls.r
  3.  
  4.      Contains:    Control Manager interfaces
  5.  
  6.      Version:    Technology:    MacOS 7.x
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1985-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18.  
  19. #ifndef __CONTROLS_R__
  20. #define __CONTROLS_R__
  21.  
  22. #ifndef __CONDITIONALMACROS_R__
  23. #include "ConditionalMacros.r"
  24. #endif
  25.  
  26. #define popupFixedWidth                 0x01
  27. #define popupVariableWidth                 0x02
  28. #define popupUseAddResMenu                 0x04
  29. #define popupUseWFont                     0x08
  30.  
  31. #define popupTitleBold                     0x0100
  32. #define popupTitleItalic                 0x0200
  33. #define popupTitleUnderline             0x0400
  34. #define popupTitleOutline                 0x0800
  35. #define popupTitleShadow                 0x1000
  36. #define popupTitleCondense                 0x2000
  37. #define popupTitleExtend                 0x4000
  38. #define popupTitleNoStyle                 0x8000
  39.  
  40. #define popupTitleLeftJust                 0x00000000
  41. #define popupTitleCenterJust             0x00000001
  42. #define popupTitleRightJust             0x000000FF
  43.  
  44. #ifdef oldTemp
  45. /*--------------------------cctb • Control Color old Lookup Table----------------------*/
  46.     type 'cctb' {
  47.             unsigned hex longint;                                    /* CCSeed                */
  48.             integer;                                                /* ccReserved            */
  49.             integer = $$Countof(ColorSpec) - 1;                        /* ctSize                */
  50.             wide array ColorSpec {
  51.                     integer        cFrameColor,                        /* partcode                */
  52.                                 cBodyColor,
  53.                                 cTextColor,
  54.                                 cElevatorColor;
  55.                     unsigned integer;                                /* RGB:    red                */
  56.                     unsigned integer;                                /*        green            */
  57.                     unsigned integer;                                /*        blue            */
  58.             };
  59.     };
  60. #else
  61. /*----------------------------cctb • Control Color Lookup Table-------------------------*/
  62.     type 'cctb' {
  63.             unsigned hex longint = 0;                                /* CCSeed                */
  64.             integer = 0;                                            /* ccReserved            */
  65.             integer = $$Countof(ColorSpec) - 1;                        /* ctSize                */
  66.             wide array ColorSpec {
  67.                     integer        cFrameColor,                        /* partcode                */
  68.                                 cBodyColor,
  69.                                 cTextColor,
  70.                                 cElevatorColor,
  71.                                 cFillPatColor,
  72.                                 cArrowsLight,
  73.                                 cArrowsDark,
  74.                                 cThumbLight,
  75.                                 cThumbDark,
  76.                                 cHiliteLight,
  77.                                 cHiliteDark,
  78.                                 cTitleBarLight,
  79.                                 cTitleBarDark,
  80.                                 cTingeLight,
  81.                                 cTingeDark;
  82.                     unsigned integer;                                /* RGB:    red                */
  83.                     unsigned integer;                                /*        green            */
  84.                     unsigned integer;                                /*        blue            */
  85.             };
  86.     };
  87. #endif
  88.  
  89. /*----------------------------CNTL • Control Template-----------------------------------*/
  90. type 'CNTL' {
  91.         rect;                                                    /* Bounds                */
  92.         integer;                                                /* Value                */
  93.         byte            invisible, visible;                     /* visible                */
  94.         fill byte;
  95.         integer;                                                /* Max                    */
  96.         integer;                                                /* Min                    */
  97.         integer         pushButProc,                            /* ProcID                */
  98.                         checkBoxProc,
  99.                         radioButProc,
  100.                         pushButProcUseWFont = 8,
  101.                         checkBoxProcUseWFont,
  102.                         radioButProcUseWFont,
  103.                         scrollBarProc = 16;
  104.         longint;                                                /* RefCon                */
  105.         pstring;                                                /* Title                */
  106. };
  107.  
  108. #define    popupMenuCDEFproc        1008                            /* ProcID 1008 = 16 * 63        */
  109.  
  110.  
  111. #endif /* __CONTROLS_R__ */
  112.  
  113.